package com.gongren.project.open.rpc.api;

import com.gongren.project.odd.job.rpc.api.vo.Activity.ActivityRpcVo;
import com.gongren.project.open.rpc.api.vo.ActivitySignUpRpcVo;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * Created by zhangjinxia on 2017/9/6.
 */
public interface IActivityRpcService {

    /**
     * 活动注册
     * @param activitySignUpRpcVo
     * @return
     */
    BigInteger saveActivitySignUp(ActivitySignUpRpcVo activitySignUpRpcVo);

    List<ActivityRpcVo> list(Integer userType, Integer showType);

    /**
     * 
     * @param userID
     * @param activity
     * @return
     * 0: 报名成功
     * 1：报名已截止
     * 2：名额已满
     * 3：重复报名
     */
	Map<String, Object> activityEnroll(String userID, ActivityRpcVo activity);
}
